namespace GUI.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class ii : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Articles", "CreationDate", c => c.DateTime(nullable: false));
            AddColumn("dbo.Articles", "UpdateDate", c => c.DateTime(nullable: false));
            AddColumn("dbo.Articles", "Subjet", c => c.String());
            AddColumn("dbo.Articles", "Title", c => c.String());
            AddColumn("dbo.Articles", "IsActive", c => c.Boolean(nullable: false));
            AddColumn("dbo.Articles", "ArticleContenent", c => c.String());
            DropColumn("dbo.Articles", "Date_Creation");
            DropColumn("dbo.Articles", "Sujet");
            DropColumn("dbo.Articles", "Titre");
            DropColumn("dbo.Articles", "Text_Article");
            DropColumn("dbo.Articles", "ArticleImage");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Articles", "ArticleImage", c => c.String());
            AddColumn("dbo.Articles", "Text_Article", c => c.String());
            AddColumn("dbo.Articles", "Titre", c => c.String());
            AddColumn("dbo.Articles", "Sujet", c => c.String());
            AddColumn("dbo.Articles", "Date_Creation", c => c.DateTime(nullable: false));
            DropColumn("dbo.Articles", "ArticleContenent");
            DropColumn("dbo.Articles", "IsActive");
            DropColumn("dbo.Articles", "Title");
            DropColumn("dbo.Articles", "Subjet");
            DropColumn("dbo.Articles", "UpdateDate");
            DropColumn("dbo.Articles", "CreationDate");
        }
    }
}
